#ifndef __power_ctrl_H__
#define __power_ctrl_H__

#include "stm32f4xx.h"


//**************/
//**************/
//**************/
//**************/
//**************/
//**************/
//**************/
//**************/
//[4]*******[2]*/
//**************/
//**************/
//[3]*******[1]*/


#define Power1ON		 1
#define Power2ON    	 1
#define Power3ON    	 1
#define Power4ON    	 1

#define Power1OFF   	 0
#define Power2OFF   	 0
#define Power3OFF   	 0
#define Power4OFF   	 0


#define Power1_ON()              GPIO_SetBits(GPIOH, GPIO_Pin_2)
#define Power2_ON()              GPIO_SetBits(GPIOH, GPIO_Pin_3)
#define Power3_ON()              GPIO_SetBits(GPIOH, GPIO_Pin_4)
#define Power4_ON()              GPIO_SetBits(GPIOH, GPIO_Pin_5)

#define Power1_OFF()              GPIO_ResetBits(GPIOH, GPIO_Pin_2)
#define Power2_OFF()              GPIO_ResetBits(GPIOH, GPIO_Pin_3)
#define Power3_OFF()              GPIO_ResetBits(GPIOH, GPIO_Pin_4)
#define Power4_OFF()              GPIO_ResetBits(GPIOH, GPIO_Pin_5)
void power_ctrl_Init(char one,char two,char three,char four);

#endif

